package cn.iocoder.yudao.runnable;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 项目的启动类
 */
@EnableTransactionManagement
@SuppressWarnings("SpringComponentScan") // 忽略 IDEA 无法识别 ${yudao.info.base-package}
@SpringBootApplication(scanBasePackages = {"${yudao.info.base-package}.runnable", "${yudao.info.base-package}.module"})
public class PFSenseApiServerApplication {

    public static void main(String[] args) {
        // 设置 ForkJoinPool.commonPool() 的并行级别
        System.setProperty("java.util.concurrent.ForkJoinPool.common.parallelism", "16");

        SpringApplication.run(PFSenseApiServerApplication.class, args);
    }

}
